<?php
namespace app\common\model;

use think\Model;

class MaterialModel extends Model
{
	protected $autoWriteTimestamp='datetime';
	protected $dateFormat = "Y-m-d H:i:s";
	protected $updateTime = false;
	protected $field = true;

	public function base($query){
		return $query->where('delete_time',null);
	}
}